package com.myblog.service;

import com.myblog.entity.Users;
import com.baomidou.mybatisplus.extension.service.IService;
import com.myblog.entity.dto.LoginDTO;
import com.myblog.entity.dto.UserDTO;
import com.myblog.entity.vo.UserVO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 沙琪马
 * @since 2024-06-21
 */
public interface IUsersService extends IService<Users> {

    void registerUsers(UserDTO user);

    void sendVerificationCode(String email);

    UserVO loginByUsername(LoginDTO loginDTO);

    UserVO loginByEmail(LoginDTO loginDTO);
}
